package cn.gov.escience.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.annotation.Id;
import org.springframework.data.solr.core.mapping.Indexed;
import org.springframework.data.solr.core.mapping.SolrDocument;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SolrDocument(solrCoreName = "collection1")
public class Project {
	@Id
	@Field("PROJECTTRACENO_is")
	@Indexed
	String id;

	@Field("PROJECTCTITLE_ais")
	@Indexed
	private String name;

	@Field("PROJECTCSUMMARY_ais")
	@Indexed
	private String summary;
}
